<template>
	<button @click="handleClick">触发事件</button>
</template>
<script>
  import Emitter from '@/mixins/emitter.js';
  
  export default {
    mixins: [ Emitter ],
    methods: {
      handleClick () {
        this.broadcast('componentB', 'on-message', 'Hello Vue.js');
      }
    }
  }
</script>